﻿@{
    ViewBag.Title = "Index_Partial";
}
@model OASys.Web.Areas.ModuleSys.Models.ModelLogsIndex
<div class="replace-container">
   <div class="common-table-container">
            <table class="common-table" id="common-table">
                <colgroup>
                    <col width="50" />
                    <col width="80" />
                    <col width="400" />
                    <col width="100" />
                    <col width="100" />
                    <col width="200" />
                    <col width="140" />
                    <col width="200" />
                    <col width="120" />
                </colgroup>
                <thead>
                    <tr>
                        <th>
                            <input type="checkbox" class="common-table-checkbox-all" />
                        </th>
                        @(Html.ThOrderHelper<OASys.Entity.UVSysLogs>(x => x.LogTypeID, "日志类型"))
                        @(Html.ThOrderHelper<OASys.Entity.UVSysLogs>(x => x.LogContent, "操作内容"))
                        @(Html.ThOrderHelper<OASys.Entity.UVSysLogs>(x => x.UserAccount, "操作账户"))
                        @(Html.ThOrderHelper<OASys.Entity.UVSysLogs>(x => x.OperatorName, "操作人姓名"))
                        @(Html.ThOrderHelper<OASys.Entity.UVSysLogs>(x => x.OperationTime, "操作时间"))
                        @(Html.ThOrderHelper<OASys.Entity.UVSysLogs>(x => x.ExceptionMsg, "异常信息"))
                        @(Html.ThOrderHelper<OASys.Entity.UVSysLogs>(x => x.MachineIP, "IP地址"))
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model.GridDataSources)
                    {
                        <tr>
                            <td>
                                @Html.CheckBox("checkboxItem", new { @class = "checkboxItem", value = item.ID })
                            </td>
                            <td>
                                @System.Enum.GetName(typeof(OASys.Enum.EnumLogType), Convert.ToInt32(item.LogTypeID))
                            </td>
                            <td title="@item.LogContent">
                                @Project.Common.StringUtility.CutString(item.LogContent, 40)
                            </td>
                            <td>
                                @item.UserAccount
                            </td>
                            <td>
                                @item.OperatorName
                            </td>
                            <td>
                                @RazorWidget.RenderDate(@item.OperationTime, "yyyy-MM-dd HH:mm:ss")
                            </td>
                            <td title="@item.ExceptionMsg">
                                @Project.Common.StringUtility.CutString(item.ExceptionMsg, 30)
                            </td>
                            <td>
                                @item.MachineIP
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
        <div>
            @{
                    Html.RenderPartial("/Views/Controls/Paginate.cshtml", Model.PaginateHelperObject);
            }
        </div>

</div>
